package com.github.bitsapling.sapling.service;

import com.github.bitsapling.sapling.entity.Peer;
import org.jetbrains.annotations.NotNull;

import java.util.List;

public interface PeerService {

    public Peer getPeer(@NotNull String ip, int port, @NotNull String infoHash);

    public List<Peer> getPeers(@NotNull String infoHash, int numWant);

    public Peer createOrUpdate(@NotNull Peer peer);

    public void delete(@NotNull Peer peer);
}
